Passed
Push — main ( 7025c8...8c0a07 )
by Bjarn
03:07 queued 01:44
created

installCommand.ts ➔ installCommand   A

Complexity

Conditions 1

Size

Total Lines 7
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 7
c 0
b 0
f 0
rs 10
cc 1
1
import commander from 'commander'
2
import InstallController from '../controllers/installController'
3
4
export default (program: typeof commander): commander.Command => program
5
    .command('install')
6
    .description('Run the initial setup of Jale')
7
    .action(() => {
8
        (new InstallController()).execute().catch(err => console.log(err.message))
9
    })